< previous page page_86 next page >

Page 86
change their font, you don't want to have to select and change each Label control individually. Fortunately, you don't have to handle controls one at a time; you can work with them in groups.
Selecting Multiple Controls
The first step in working with multiple controls is to select all the controls that you need to move or modify. You can select a group of controls by clicking the mouse on your form and dragging it. As you drag the mouse, a dashed-line box appears on the form, as shown in Figure 4.21 (the designtime Form Grid has been disabled for clarity). Use this box to enclose the controls you want to select.
0086-01.jpg
Figure 4.21
You can easily select multiple
controls by using the mouse.
When you release the mouse button, any controls that are inside the box or touching it are selected. The selected controls are indicated by sizing handles at each corner and in the center of each side of the control, as you can see in Figure 4.22.
0086-02.jpg
Figure 4.22
Sizing handles indicate that one
or more controls are selected.
note.gif You can also select multiple controls by holding down the Ctrl key while you click them individually. If you need to select a group of controls that are contained within a frame or picture box, you must Ctrl+click them because the dashed-line box technique doesn't work. square.gif

You can add controls to a group or remove them by clicking the control while holding down the Shift or Ctrl key. You can even use this approach after making an initial selection with a mouse drag, so you can refine your selection to exactly the group of controls you want to work with.
After the group of controls has been selected, you can move the group as a whole by clicking one of the controls in the group and dragging the group to a new location. The controls retain their relative positions within the group as you move them. You can also use editing operations such as Delete, Cut, Copy, and Paste on the group as a whole.

 
< previous page page_86 next page >